import axios from 'axios'
import './request.js'

// 获取所有积分商品订单
export const shopOrder = function() {
    return axios.get('/content/shop/shop/alluserlist')
}

// 修改积分商品订单状态（待发货，已发货，历史订单）
export const updateShopOrder = function(params) {
    return axios.get('/content/shop/finish', { params: params })
}

// 获取所有废品订单
export const wasteOrder = function() {
    return axios.get('/content/waste/userliat')
}

// 修改废品订单状态（待上门，已回收，全部订单）
export const updateWasteOrder = function(params) {
    return axios.put('/content/waste/finshIndent', params)
}